package com.qingcheng.controller.test;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

//@Component   //标注为组件
public class TaskDemo {


   // @Scheduled(cron ="* * * * * ?")  //每秒执行一次
    public void taskDemo(){


        System.out.println(new Date());


    }

}
